package com.itheima.reggie.domain;


import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

//购物车

@ApiModel("购物车")
@Data
@TableName("shopping_cart")
public class Cart implements Serializable {

    @ApiModelProperty("主键")
    private Long id;//主键

    @ApiModelProperty("名称")
    private String name;//名称

    @ApiModelProperty("用户id")
    private Long userId;//用户id

    @ApiModelProperty("菜品id")
    private Long dishId;//菜品id

    @ApiModelProperty("套餐id")
    private Long setmealId;//套餐id

    @ApiModelProperty("口味")
    private String dishFlavor;//口味

    @ApiModelProperty("数量")
    private Integer number;//数量

    @ApiModelProperty("金额")
    private BigDecimal amount;//金额

    @ApiModelProperty("图片")
    private String image;//图片

    @ApiModelProperty("创建时间")
    private Date createTime;
}